﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPFDBBrowser.MessageBus
{

    interface ISubscription
    {
        string Subscriber { get; set; }
        Guid Id { get; set; }
    }

    class Subscription<T> : ISubscription
    {
        public string Subscriber { get; set; }
        public Guid Id { get; set; }
        public Action<T> Notify { get; set; }
        public Predicate<T> Filter { get; set; }
    }
}
